﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyMES.Domain.W.Liststructure
{
    /// <summary>
    /// 生产任务
    /// </summary>
    public class ProductionTask
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int ProductionTaskId { get; set; }

        /// <summary>
        /// 任务编号
        /// </summary>
        public string TaskNumber { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 工作站编号
        /// </summary>
        public string WorkStationNumber { get; set; }

        /// <summary>
        /// 工作站名称
        /// </summary>
        public string WorkStationName { get; set;}

        /// <summary>
        /// 排产数量
        /// </summary>
        public int ScheduledNumber { get; set; }

        /// <summary>
        /// 已生产数量
        /// </summary>
        public int QuantityProduced { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartofProductionTime { get; set; }

        /// <summary>
        /// 生产时长
        /// </summary>
        public string ProductionTime { get; set; }
        
        /// <summary>
        /// 预计生产时间
        /// </summary>
        public DateTime EstimatedTime { get; set; }

        /// <summary>
        /// 显示颜色
        /// </summary>
        public string DisplayColor { get; set; }

        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
